package com.hospital.hospitalsystem.modules.login.service;

import com.hospital.hospitalsystem.modules.login.dao.entity.HospitalRegisterEntity;
import com.hospital.hospitalsystem.modules.login.dao.mapper.HospitalMessageMapper;
import com.hospital.hospitalsystem.modules.login.dao.mapper.HospitalRegisterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/2/22
 */
@Component
public class HospitalRegisterService {
    @Autowired
    private HospitalRegisterMapper hospitalRegisterMapper;


    public List<HospitalRegisterEntity> selectByExample(Example example) {
        return hospitalRegisterMapper.selectByExample(example);
    }

    public void insertSelective(HospitalRegisterEntity hospitalRegisterEntity) {
        hospitalRegisterMapper.insertSelective(hospitalRegisterEntity);
    }

    public HospitalRegisterEntity selectOneByExample(Example example){
        return hospitalRegisterMapper.selectOneByExample(example);
    }

    public void deleteByExample(Example example) {
        hospitalRegisterMapper.deleteByExample(example);
    }
}
